﻿// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : PhotonServerProject | PhotonServerCommon | ParameterTMap.cs
// //  Created : 2016 - 03 - 21 13:02
// //  Modified: 2016 - 04 - 18 09:38
// //  ********************************************************************************

using FluentNHibernate.Mapping;
using PhotonServerCommon.Entities.Domain;

namespace PhotonServerCommon.Entities.Mapping
{
    public class ParameterTMap : ClassMap<ParameterT>
    {
        public ParameterTMap()
        {
            Schema("mseconfig");
            Table("parameter_t");
            CompositeId().KeyProperty(x => x.ParComp, "ParComp")
                .KeyProperty(x => x.ParCompGrp, "ParCompGrp")
                .KeyProperty(x => x.ParKey, "ParKey");
            Map(x => x.DzIns).Column("DzIns").Not.Nullable();
            Map(x => x.DzUpd).Column("DzUpd").Not.Nullable();
            Map(x => x.NamUpd).Column("NamUpd").Not.Nullable();
            Map(x => x.ParDesc).Column("ParDesc").Not.Nullable();
            Map(x => x.ParValue).Column("ParValue").Not.Nullable();
            Map(x => x.Tsn).Column("Tsn").Not.Nullable();
            Map(x => x.ParValueMin).Column("ParValueMin");
            Map(x => x.ParValueMax).Column("ParValueMax");
        }
    }
}
